package com.mqy.dao;


import com.mqy.entity.Page;
import com.mqy.entity.UserLocation;

import java.util.List;

public interface HBaseUserLocationDao {

  // findAllByUserId
  List<UserLocation> query(UserLocation userLocation, boolean sort);

  // findAllByUserId
  Page<UserLocation> query(UserLocation userLocation, Page<UserLocation> page);

  // findNearUserIds
  List<UserLocation> query(String whereSql);

  // insert
  void add(UserLocation userLocation);

  //查最新createTime
  List<UserLocation> queryNewTimeAddress(UserLocation userLocation);

  //查询hbase现有多少条用户
  Long count(UserLocation userLocation);
}
